<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Windows 支持改变</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="migration53.new-features.html">新特性</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="migration53.sapi.html">SAPI 模块的改变</a></div>
 <div class="up"><a href="migration53.html">从 PHP 5.2.x 移植到 PHP 5.3.x</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="migration53.windows" class="section">
  <h2 class="title">Windows 支持改变</h2>
  <p class="simpara">
   Windows 发行版的改变:
  </p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     最小的 Windows 支持版本是 Windows XP SP3; Windows 98, ME, 2000 和 NT4 将不再被支持.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Windows 二进制版支持 i586 以上版本. i386 和 i486 不再被支持.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Windows 上的 PHP x64 版本的支持是实验性的.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     通过使用 Visual Studio 2008, 编译器现在支持 Visual C++ 9 (VC9). 基于 VC9 的快照和发行版均可用. 旧的使用 VC6 的二进制版本仍然会与 VC9 版本同时被支持和发行.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <a href="ref.pdo-oci.html" class="link">PDO_OCI</a> <em>php_pdo_oci8.dll</em> 库(配合 Oracle version 8 客户端库使用)已经不会被内建. 作为替代, 使用 <em>php_pdo_oci.dll</em> (注意没有 &#039;8&#039;) 配合 Oracle 10 或 11 客户端库. 仍然支持其他数据库版本的连接.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     对于 <a href="book.oci8.html" class="link">OCI8</a> 扩展而言, 除了 <em>php_oci8.dll</em> 之外, 一个新的库 <em>php_oci8_11g.dll</em> 可用. 但仅仅只能同时打开一个库. 配合 Oracle 10.2 客户端库使用 <em>php_oci8.dll</em>. 配合 Oracle 11 客户端库使用 <em>php_oci8_11g.dll</em>. 仍然支持其他数据库版本的连接.
    </span>
   </li>
  </ul>
  <p class="simpara">
   新增了如下这些 Windows 支持函数:
  </p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.checkdnsrr.html" class="function">checkdnsrr()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.dns-get-record.html" class="function">dns_get_record()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.fnmatch.html" class="function">fnmatch()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.getmxrr.html" class="function">getmxrr()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.getopt.html" class="function">getopt()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.imagecolorclosesthwb.html" class="function">imagecolorclosesthwb()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.inet-ntop.html" class="function">inet_ntop()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.inet-pton.html" class="function">inet_pton()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.link.html" class="function">link()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.linkinfo.html" class="function">linkinfo()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.mcrypt-create-iv.html" class="function">mcrypt_create_iv()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.readlink.html" class="function">readlink()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.socket-create-pair.html" class="function">socket_create_pair()</a></span>
     - 该函数之前就可以在 Windows 平台使用, 但是自 PHP 4.3.0 起就因为一个 Bug 的原因而关闭了.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.stream-socket-pair.html" class="function">stream_socket_pair()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.symlink.html" class="function">symlink()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.time-nanosleep.html" class="function">time_nanosleep()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="function"><a href="function.time-sleep-until.html" class="function">time_sleep_until()</a></span>
    </span>
   </li>
  </ul>
  <p class="simpara">
   其它改变:
  </p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     改进了 <span class="function"><a href="function.stat.html" class="function">stat()</a></span>, <span class="function"><a href="function.touch.html" class="function">touch()</a></span>, <span class="function"><a href="function.filemtime.html" class="function">filemtime()</a></span>, <span class="function"><a href="function.filesize.html" class="function">filesize()</a></span> 等相关函数的移植性(对于可用数据100%可移植).
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     现在可以使用 <span class="function"><a href="function.link.html" class="function">link()</a></span> 函数来在 Windows 平台上创建硬链接, 创建符号链接则使用 <span class="function"><a href="function.symlink.html" class="function">symlink()</a></span> 函数. 硬链接自 Windows 2000 起可用, 符号链接则自 Windows Vista 起可用.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Windows 版本的 PHP 包含一组以 <em>PHP_WINDOWS_*</em> 为前缀的常量. 这些常量的列表可以在<a href="info.constants.html" class="xref">预定义常量</a>找到.
    </span>
   </li>
  </ul>
  <div class="warning"><strong class="warning">Warning</strong>
   <p class="simpara">
    丢弃 ISAPI 模块支持. 使用改进的 FastCGI SAPI 模块替代.
   </p>
  </div>
  <blockquote class="note"><p><strong class="note">Note</strong>: 
   <span class="simpara">
    一个新的专注于 PHP on Windows 的站点可用, 包括下载, 发布候选版本, 和各种快照(thread-safe/not-thread-safe, VC6/VC9, x86/x64). 网站的地址是 <a href="http://windows.php.net/" class="link external">&raquo;&nbsp;http://windows.php.net/</a>.
   </span>
  </p></blockquote>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="migration53.new-features.html">新特性</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="migration53.sapi.html">SAPI 模块的改变</a></div>
 <div class="up"><a href="migration53.html">从 PHP 5.2.x 移植到 PHP 5.3.x</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
